package com.cskaoyan.mapper;

import com.cskaoyan.model.bean.GoodsAttribute;
import com.cskaoyan.model.bean.GoodsAttributeExample;
import com.cskaoyan.model.bo.goods.Attribute;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsAttributeMapper {

    long countByExample(GoodsAttributeExample example);

    int deleteByExample(GoodsAttributeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GoodsAttribute record);

    int insertGoodsAttribute(List<Attribute> attributeList);

    int insertSelective(GoodsAttribute record);

    List<GoodsAttribute> selectByExample(GoodsAttributeExample example);

    GoodsAttribute selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GoodsAttribute record, @Param("example") GoodsAttributeExample example);

    int updateByExample(@Param("record") GoodsAttribute record, @Param("example") GoodsAttributeExample example);

    int updateByPrimaryKeySelective(GoodsAttribute record);

    int updateByPrimaryKey(GoodsAttribute record);

    int insertGoodsUpdateAttribute(List<GoodsAttribute> attributeList);
}